<?php

class Application_Form_Page extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
        $this->setName('page');

        $id = new Zend_Form_Element_Hidden('id');
        $id->addFilter('Int');

        // Get session id
        // Have default for the time being
        $createdBy = 2;
        
        $this->addElement('text','title',array(
              'filters' => array('StripTags','StringTrim'),
              'filters' => array('StripTags','StringTrim'),
              'validators' => array(array('StringLength',false,array(0,50))),
              'required' => true,
              'attribs' => array('class'=>'input1'),
              'label' => 'Title:'
                 ));

       $this->addElement('text','description',array(
              'filters' => array('StripTags','StringTrim'),
              'validators' => array(array('StringLength',false,array(0,50))),
              'required' => true,
              'attribs' => array('class'=>'input1'),
              'label' => 'Description:'
                 ));
                 
       $this->addElement('text','content',array(
              'filters' => array('StripTags','StringTrim'),
              'validators' => array(array('StringLength',false,array(0,50))),
              'required' => true,
              'attribs' => array('class'=>'input1'),
              'label' => 'Content:'
                 ));

       $this->addElement('text','tags',array(
              'filters' => array('StripTags','StringTrim'),
              'validators' => array(array('StringLength',false,array(0,50))),
              'required' => true,
              'attribs' => array('class'=>'input1'),
              'label' => 'Tags:'
                 ));
                                        
       $this->addElement('submit','submit',array(
              'attribs' => array('id'=>'submitbutton')
               ));
    }
}

